﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Data;
using System.Xml.Linq;
using System.ComponentModel;
using System.Web.Script.Services;

using Jumpton.SFA.Server.BusinessRule;
using Jumpton.SFA.Server.BusinessRule.Objective;
using Jumpton.SFA.Server.BusinessRule.CallRoute;
using Jumpton.SFA.Server.Entity;
using Jumpton.Data;
using Jumpton.Persistent;
using System.ServiceModel;

/// <summary>
///Service 的摘要说明
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
//若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消对下行的注释。 
// [System.Web.Script.Services.ScriptService]
public class Service : System.Web.Services.WebService
{

    public Service()
    {

        //如果使用设计的组件，请取消注释以下行 
        //InitializeComponent(); 
    }

    

    /// <summary>
    /// 获取该部门下所有订单
    /// </summary>
    /// <param name="orgID"></param>
    /// <param name="Condition"></param>
    /// <param name="date"></param>
    /// <param name="pageSize"></param>
    /// <param name="pageIndex"></param>
    /// <returns></returns>
    [WebMethod]
    public DataTable GetData(int orgID, string Condition, DateTime date, int pageSize, int pageIndex)
    {
        return SqlData.OpenSP("sp_get_orgOrder", orgID, Condition, date, pageSize, pageIndex).Tables[0];
    }

}

